﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FormQueue.aspx.cs" Inherits="eTruck.Views.Forms.FormQueue" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="~/Styles/Site.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" type="text/css" href="<%=Page.ResolveClientUrl("~/Styles/ss.gridview.css")%>"/>
    <link rel="stylesheet" type="text/css" href="<%=Page.ResolveClientUrl("~/Styles/themes/default/easyui.css")%>"/>
	<link rel="stylesheet" type="text/css" href="<%=Page.ResolveClientUrl("~/Styles/themes/icon.css")%>"/>
	<script type="text/javascript" src="<%=Page.ResolveClientUrl("~/Scripts/jquery.min.js")%>"></script>
	<script type="text/javascript" src="<%=Page.ResolveClientUrl("~/Scripts/jquery.easyui.min.js")%>"></script>
</head>
<body style=" margin-bottom:0; margin-left:5px; margin-right:0; margin-top:5px; padding:0">
    <form id="form1" runat="server">
		<div style="height:99%;border:1px solid #ccc; margin:0; padding:0; ">
		<div id="panelForm" class="easyui-panel" title="待处理车辆" style="width:800px;height:600px;padding:5px; margin:0"
				data-options="iconCls:'icon-save',collapsible:true" maximized="true">
           <br />
           
             <table style=" width: 100%;" cellpadding="2" cellspacing="1" class="border">
                <tr>
                    <td style="width: 80px" align="right" class="tdbg">
                         车<b>牌号码：</b>
                    </td>
                    <td class="tdbg">                       
                    <asp:TextBox ID="txtKeyword" runat="server"></asp:TextBox>
                    &nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:Button ID="btnSearch" runat="server" Text="查询"  OnClick="btnSearch_Click" >
                    </asp:Button>                    
                        
                    </td>
                    <td class="tdbg">
                    </td>
                </tr>
            </table>
            <br />
              <table border="0" cellpadding="0" cellspacing="1" style="width: 100%;">
                <tr>
                    <td style="width: 1px;">                        
                    </td>
                    <td align="left">
                        
                        <asp:Button  runat="server" ID="btnAdd" name="add" Text="添加" Font-Size="Large"
                            onclick="btnAdd_Click"  />                    
                    </td>
                </tr>
            </table>
            <div>
            <asp:GridView ID="gridView" runat="server" AllowPaging="True" Width="100%" 
                    CellPadding="3"  OnPageIndexChanging ="gridView_PageIndexChanging"
                    BorderWidth="1px" DataKeyNames="FormID" OnRowDataBound="gridView_RowDataBound" 
                    AutoGenerateColumns="false" PageSize="20"  
                    RowStyle-HorizontalAlign="Center" OnRowCreated="gridView_OnRowCreated" 
                    onpageindexchanged="gridView_PageIndexChanged" 
                    onrowcommand="gridView_RowCommand" onrowdeleting="gridView_RowDeleting">
                    <Columns>
                  
                            
		                    <asp:BoundField DataField="Car_NO" HeaderText="车牌号码" SortExpression="Car_NO" ItemStyle-HorizontalAlign="Center"  /> 
		                    <asp:BoundField DataField="CorporationName" HeaderText="所属公司" SortExpression="CorporationName" ItemStyle-HorizontalAlign="Center"  /> 
		                    <asp:BoundField DataField="CertificationNO" HeaderText="驾驶证号" SortExpression="CertificationNO" ItemStyle-HorizontalAlign="Center"  /> 
		                    <asp:BoundField DataField="DriverName" HeaderText="司机姓名" SortExpression="DriverName" ItemStyle-HorizontalAlign="Center"  /> 
		                    <asp:BoundField DataField="FormType" HeaderText="进厂目的" SortExpression="FormType" ItemStyle-HorizontalAlign="Center"  /> 
		                    <asp:BoundField DataField="CardID" HeaderText="通行卡号" SortExpression="CardID" ItemStyle-HorizontalAlign="Center"  /> 
		                    <asp:BoundField DataField="Contact" HeaderText="联系人姓名" SortExpression="Contact" ItemStyle-HorizontalAlign="Center"  /> 
		                    <asp:BoundField DataField="OrderNumber" HeaderText="订单号" SortExpression="OrderNumber" ItemStyle-HorizontalAlign="Center"  /> 
                            <asp:BoundField DataField="Reservation_In_Time" HeaderText="预约进厂时间" SortExpression="Reservation_In_Time" ItemStyle-HorizontalAlign="Center"  /> 
                            <asp:ButtonField ButtonType="Button" HeaderText="详细" Text="详细" CommandName="Detail" 
                            ItemStyle-HorizontalAlign="Center"  />
                              <asp:ButtonField ButtonType="Button" HeaderText="删除" Text="删除" CommandName="Delete" 
                            ItemStyle-HorizontalAlign="Center" Visible="false"/> 
                                                      
                           
                        </Columns>
                        <HeaderStyle CssClass="ss_gv_title"/>
                </asp:GridView>
               </div>
           
	</div>
    </div>
    </form>
    <script type="text/javascript">

    window.onresize = function () {
        $("#panelForm").panel("restore");
        $("#panelForm").panel("maximize");
    }

</script>
</body>
</html>
